package com.znsd.zl.house.service;

import com.znsd.zl.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName DictItemServiceFeign
 * @Description TODO
 * @Author zhubin
 * @Date 2020/8/20 16:34
 * @Version v1.0
 */
@Component
@FeignClient(name = "zlhouse-dict")
@RequestMapping("zl/dictItem")
public interface DictItemServiceFeign {
	/**
	 * 查询所有的类型数据
	 * @param dictType 字典类型
	 * @return
	 */
	@GetMapping("/findAllText")
	R queryTextByDictType(@RequestParam("dictType") String dictType) ;

	/**
	 * 查询单个数据
	 * @param id
	 * @return
	 */
	@GetMapping("/{id}")
	R findAll(@PathVariable("id") Integer id);
}
